<style type="text/css">
    #slider img{
        height: 200px;
    }
</style>
<div><div class="gp_ad">
				<div id="slider" class="mui-slider ">
					<div class="mui-slider-group mui-slider-loop">
						{if $ads} 
							<div class="mui-slider-item mui-slider-item-duplicate">
								<a href="{$ads[count($ads)-1]['url']}?id={$ads[count($ads)-1]['id']}">
									<img style="margin-top: -1px;" src="{$ads[count($ads)-1]['thumb']}">
								</a>
							</div>
							{foreach name="ads" item="ad"}
							<div class="mui-slider-item">
								<a href="{$ad.url}?id={$ad.id}">
									<img style="margin-top: -1px;" src="{$ad.thumb}">
								</a>
							</div>
							{/foreach}
						
						<div class="mui-slider-item mui-slider-item-duplicate">
							<a href="{$ads[0]['url']}?id={$ads[0]['id']}">
								<img style="margin-top: -1px;" src="{$ads[0]['thumb']}">
							</a>
						</div>
						{else/}
						<div class="mui-slider-item">
							<img style="margin-top: -1px;" id="second" src="__INDEX__/images/banner.jpg">
						</div>
						{/if}
						
					</div>
					<div class="mui-slider-indicator">
						<div class="mui-indicator mui-active"></div>
						<div class="mui-indicator"></div>
						<div class="mui-indicator"></div>
					</div>
				</div>
	    	</div>
	    <ul class="sp_nav">
	    	<li {if $controller=='Index' && $action=='index'}class="active"{/if}>
	    		<a href="/index/index/index" ><div><img src="__INDEX__/images/cpzx.png" style="width: 24px;height: 24px;"></div>
	    			<div class="title">星创商城</div></a>
	    	</li>
	    	<li {if $action=='sjhs'}class="active"{/if}>
	    		<a href="/index/index/sjhs" ><div><img src="__INDEX__/images/sjhs.png" style="width: 24px;height: 24px;"></div>
	    			<div class="title">美丽汇</div></a>
	    	</li>
	    	<li {if $action=='hyfw'}class="active"{/if}>
	    		<a href="/index/index/hyfw" ><div><img src="__INDEX__/images/hyfw.png" style="width: 24px;height: 24px;"></div>
	    			<div class="title">星创服务</div></a>
	    	</li>
	    	{if $Think.session.user_info['is_city'] == 1}
	    	<li>
	    		<a href="/index/city/index"><div><img src="__INDEX__/images/wdmlj.jpg" style="width: 24px;height: 24px;"></div>
	    			<div class="title">我的星创</div></a>
	    	</li>
	    	{else/}
	    	<li>
	    		<a href="/index/member/index"><div><img src="__INDEX__/images/wdmlj.jpg" style="width: 24px;height: 24px;"></div>
	    			<div class="title">我的星创</div></a>
	    	</li>
	    	{/if}
	    </ul>
	    <script>
	var gallery = mui('.mui-slider');
	gallery.slider({
		interval: 5000 //自动轮播周期，若为0则不自动播放，默认为0；
	});
</script>